M84 Z

M291 R"True Bed Leveling Test" P"Tilt the bed manually to test the True Bed Leveling." S4 K{"Test","Skip","Cancel"}
if input == 1
    M99
elif input == 2
    abort "Test cancelled by user"
G28

M291 R"Z - Axis Lubracation" P"Do you want to lubricate the Z-Axis?<br>Press and hold X or U endtop to stop" S4 K{"Start","Skip","Cancel"}
if input == 1
    M99
elif input == 2
    abort "Test cancelled by user"

G90
G1 X-999 U999 Y0 F18000

while true
    if sensors.endstops[0].triggered || sensors.endstops[3].triggered
        break
    G1 Z450 F18000
    M400
    
    if sensors.endstops[0].triggered || sensors.endstops[3].triggered
        break
    G1 Z0 F18000
    M400


G1 Z300 F18000